/*
 * Copyright (C) 2015 yixun All Rights Reserved.
 * 
 * PartnerInfo.java
 */
package com.yixun.qfbao.model;

import com.alibaba.fastjson.annotation.JSONField;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * [文件名称]<br>
 * PartnerInfo.java<br>
 * <br>
 * [文件描述]<br>
 * 合作机构 pojo bean<br>
 * <br>
 * [修改记录]<br>
 * 2015-10-13 15:32:11 创建 陶俊代码生成器<br>
 * 
 * @author 陶俊代码生成器
 * @version 1.00
 */
public class PartnerInfo implements Serializable{
    /**
	 * 序列化UID
	 */
	private static final long serialVersionUID = 1L;

	/**
	 *主键ID
	 */
	private Long id;
	/**
	 *账户名称
	 */
	private String accountName;
	/**
	 *联系人
	 */
	private String contacts;
	/**
	 *电话/手机
	 */
	private String phone;
	
	private String unionId;
	/**
	 *账户类型:[{key:mechanism_account_type,values:[{no:0,alias:mechanism,remark:机构},{no:1,alias:individual,remark:个人}]}]
	 */
	private String accountType;
	/**
	 *公司类型/职位,对应系统参数表ID
	 */
	private Long objectType;
	/**
	 *地址
	 */
	private String adress;
	/**
	 *状态:[{key:mechanism_status,values:[{no:0,alias:disable,remark:停用},{no:1,alias:enable,remark:启用}]}]
	 */
	private String status;
	/**
	 *密码:MD5加密
	 */
	private String password;
	/**
	 *公司ID，如果账号类型是合作机构则为0
	 */
	private Long higherid;
	/**
	 * 公司名称
	 */
	private String companyName;
	/**
	 * 部门
	 */
	private Long deptId;
	/**
	 *收款人
	 */
	private String payee;
	/**
	 *卡号
	 */
	private String cardNumber;
	/**
	 * 注册二维码来源人员ID
	 */
	private Long qrcodeOriginPartnerId;
	/**
	 * 个人名片小程序码
	 */
	private String personalCardQrcode;
	/**
	 *备注
	 */
	private String remark;
	
	/**
	 * 邮箱
	 */
	private String mailbox;
	/**
	 * 是否删除 0-否，1是
	 */
	private String delFlag;
	/**
	 *对接人
	 */
	private String principalName;
	
	private String lastLoginSystemId;
	
	/**
	 * 职务
	 */
	private String post;
	
	/**
	 * 头像
	 */
	private String profilePhoto;
	
	/**
	 * 对应的总代公司ID
	 */
	private String devCompanyUuid;
	
	/**
	 * 楼盘集合
	 */
	private List<Long> premisesIds;
	
	/**
	 * 部门名称
	 */
	private String departmentName;
	
	/**
	 * 审核记录ID
	 */
	private Long checkRecordId;
	
	/**
	 * 审核状态
	 */
	private String checkStatus;
	
	/**
	 * 审核时间
	 */
	private Date checkTime;
	
	/**
	 * 审核人名称
	 */
	private String checkUserName;
	
	/**
	 * 审核备注
	 */
	private String checkRemark;
	
	public String getPrincipalName() {
		return principalName;
	}


	public void setPrincipalName(String principalName) {
		this.principalName = principalName;
	}

	
	public String getLastLoginSystemId() {
		return lastLoginSystemId;
	}


	public void setLastLoginSystemId(String lastLoginSystemId) {
		this.lastLoginSystemId = lastLoginSystemId;
	}


	public String getDelFlag() {
		return delFlag;
	}


	public void setDelFlag(String delFlag) {
		this.delFlag = delFlag;
	}

	private String isAdmin;
	
	
	
	
	/**
	 * 省份ID
	 * @return
	 */
	private Long province;
	
	private Long city;
	
	/**
	 * 系统外部编号
	 */
	private String externalNumber;
	
	/**
	 * 微信openid
	 */
	private String wxOpenid;
	
	/**
	 * wxopenId，在更新时，不会进行空判断
	 */
	private Boolean nullWxOpenid;

	/**
	 * 微信小程序openid
	 */
	private String weappOpenid;
	/**
	 * 数据查看权限
	 * 无：无法查看任何报备记录
	 * 本人：可查看“自己发起的”报备记录
	 * 本部：可查看【所在部门及其子部门】的报备记录
	 * 全部：可查看当前商户下所有报备记录
	 */
	private String userRole;
	
	private Long userRoleId;
	
	
	private String dempName;
	private String roleName;

	/**
	 * 关联手机号
	 */
	private String otherPhone;

	public String getOtherPhone() {
		return otherPhone;
	}

	public void setOtherPhone(String otherPhone) {
		this.otherPhone = otherPhone;
	}

	public String getIsAdmin() {
		return isAdmin;
	}


	public void setIsAdmin(String isAdmin) {
		this.isAdmin = isAdmin;
	}


	public String getDempName() {
		return dempName;
	}


	public void setDempName(String dempName) {
		this.dempName = dempName;
	}


	public String getRoleName() {
		return roleName;
	}


	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}


	public Long getUserRoleId() {
		return userRoleId;
	}


	public void setUserRoleId(Long userRoleId) {
		this.userRoleId = userRoleId;
	}


	public String getUserRole() {
		return userRole;
	}


	public void setUserRole(String userRole) {
		this.userRole = userRole;
	}


	/**
	 * @return the province
	 */
	public Long getProvince() {
		return province;
	}


	/**
	 * @param province the province to set
	 */
	public void setProvince(Long province) {
		this.province = province;
	}


	/**
	 * @return the city
	 */
	public Long getCity() {
		return city;
	}


	/**
	 * @param city the city to set
	 */
	public void setCity(Long city) {
		this.city = city;
	}


	public String getMailbox() {
		return mailbox;
	}


	public void setMailbox(String mailbox) {
		this.mailbox = mailbox;
	}

	/**
	 * 楼盘ID 
	 */
	private String propertyIds;
	
	private String propertyIdsCN;
	
	/**
	 * 查询条件
	 * @return
	 */
	private String partnerInfoId;
	
	
	private String companyId;

	
	public String getPartnerInfoId() {
		return partnerInfoId;
	}


	public void setPartnerInfoId(String partnerInfoId) {
		this.partnerInfoId = partnerInfoId;
	}


	public String getCompanyId() {
		return companyId;
	}

	public void setCompanyId(String companyId) {
		this.companyId = companyId;
	}

	public String getPropertyIdsCN() {
		return propertyIdsCN;
	}


	public void setPropertyIdsCN(String propertyIdsCN) {
		this.propertyIdsCN = propertyIdsCN;
	}

	/**
	 *创建时间
	 */
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	/**
	 *修改时间
	 */
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	


	/**	 
	 *设置 :主键ID
	 */
	public void setId(Long id) {
		this.id = id;
	}

	
	public String getPropertyIds() {
		return propertyIds;
	}


	public void setPropertyIds(String propertyIds) {
		this.propertyIds = propertyIds;
	}


	/**	 
	 *获取 :主键ID
	 */
	public Long getId() {
		return this.id;
	}

	/**	 
	 *设置 :账户名称
	 */
	public void setAccountName(String accountName) {
		this.accountName = accountName;
	}

	/**	 
	 *获取 :账户名称
	 */
	public String getAccountName() {
		return this.accountName;
	}

	/**	 
	 *设置 :联系人
	 */
	public void setContacts(String contacts) {
		this.contacts = contacts;
	}

	/**	 
	 *获取 :联系人
	 */
	public String getContacts() {
		return this.contacts;
	}

	/**	 
	 *设置 :电话/手机
	 */
	public void setPhone(String phone) {
		this.phone = phone;
	}

	/**	 
	 *获取 :电话/手机
	 */
	public String getPhone() {
		return this.phone;
	}

	/**	 
	 *设置 :账户类型:[{key:mechanism_account_type,values:[{no:0,alias:mechanism,remark:机构},{no:1,alias:individual,remark:个人}]}]
	 */
	public void setAccountType(String accountType) {
		this.accountType = accountType;
	}

	/**	 
	 *获取 :账户类型:[{key:mechanism_account_type,values:[{no:0,alias:mechanism,remark:机构},{no:1,alias:individual,remark:个人}]}]
	 */
	public String getAccountType() {
		return this.accountType;
	}

	/**	 
	 *设置 :公司类型/职位,对应系统参数表ID
	 */
	public void setObjectType(Long objectType) {
		this.objectType = objectType;
	}

	/**	 
	 *获取 :公司类型/职位,对应系统参数表ID
	 */
	public Long getObjectType() {
		return this.objectType;
	}

	/**	 
	 *设置 :地址
	 */
	public void setAdress(String adress) {
		this.adress = adress;
	}

	/**	 
	 *获取 :地址
	 */
	public String getAdress() {
		return this.adress;
	}

	/**	 
	 *设置 :状态:[{key:mechanism_status,values:[{no:0,alias:disable,remark:停用},{no:1,alias:enable,remark:启用}]}]
	 */
	public void setStatus(String status) {
		this.status = status;
	}

	/**	 
	 *获取 :状态:[{key:mechanism_status,values:[{no:0,alias:disable,remark:停用},{no:1,alias:enable,remark:启用}]}]
	 */
	public String getStatus() {
		return this.status;
	}

	/**	 
	 *设置 :密码:MD5加密
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**	 
	 *获取 :密码:MD5加密
	 */
	public String getPassword() {
		return this.password;
	}

	/**	 
	 *设置 :公司ID，如果账号类型是合作机构则为0
	 */
	public void setHigherid(Long higherid) {
		this.higherid = higherid;
	}

	/**	 
	 *获取 :公司ID，如果账号类型是合作机构则为0
	 */
	public Long getHigherid() {
		return this.higherid;
	}

	public String getCompanyName() {
		return companyName;
	}


	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}
	
	public Long getDeptId() {
		return deptId;
	}


	public void setDeptId(Long deptId) {
		this.deptId = deptId;
	}


	/**	 
	 *设置 :收款人
	 */
	public void setPayee(String payee) {
		this.payee = payee;
	}

	/**	 
	 *获取 :收款人
	 */
	public String getPayee() {
		return this.payee;
	}

	/**	 
	 *设置 :卡号
	 */
	public void setCardNumber(String cardNumber) {
		this.cardNumber = cardNumber;
	}

	/**	 
	 *获取 :卡号
	 */
	public String getCardNumber() {
		return this.cardNumber;
	}

	/**	 
	 *设置 :备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}

	/**	 
	 *获取 :备注
	 */
	public String getRemark() {
		return this.remark;
	}

	/**	 
	 *设置 :创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	/**	 
	 *获取 :创建时间
	 */
	public Date getCreateTime() {
		return this.createTime;
	}

	/**	 
	 *设置 :修改时间
	 */
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	/**	 
	 *获取 :修改时间
	 */
	public Date getUpdateTime() {
		return this.updateTime;
	}


	public String getExternalNumber() {
		return externalNumber;
	}


	public void setExternalNumber(String externalNumber) {
		this.externalNumber = externalNumber;
	}


	public String getWxOpenid() {
		return wxOpenid;
	}


	public void setWxOpenid(String wxOpenid) {
		this.wxOpenid = wxOpenid;
	}
	
	/**********扩展字段**********/
	/**
	 * 默认驻守楼盘
	 */
	private String premisesId;
	private String premisesName;
	/**
	 * 登录标识
	 * LoginTypeEnum
	 */
	private String loginType;
	
	public String getPremisesId() {
		return premisesId;
	}
	public void setPremisesId(String premisesId) {
		this.premisesId = premisesId;
	}


	public String getPremisesName() {
		return premisesName;
	}


	public void setPremisesName(String premisesName) {
		this.premisesName = premisesName;
	}


	public String getLoginType() {
		return loginType;
	}


	public void setLoginType(String loginType) {
		this.loginType = loginType;
	}

	public String getWeappOpenid() {
		return weappOpenid;
	}

	public void setWeappOpenid(String weappOpenid) {
		this.weappOpenid = weappOpenid;
	}

	public String getUnionId() {
		return unionId;
	}

	public void setUnionId(String unionId) {
		this.unionId = unionId;
	}

	public List<Long> getPremisesIds() {
		return premisesIds;
	}

	public void setPremisesIds(List<Long> premisesIds) {
		this.premisesIds = premisesIds;
	}

	public Boolean getNullWxOpenid() {
		return nullWxOpenid;
	}

	public void setNullWxOpenid(Boolean nullWxOpenid) {
		this.nullWxOpenid = nullWxOpenid;
	}

	public String getPost() {
		return post;
	}

	public void setPost(String post) {
		this.post = post;
	}

	public String getProfilePhoto() {
		return profilePhoto;
	}

	public void setProfilePhone(String profilePhoto) {
		this.profilePhoto = profilePhoto;
	}

	public void setProfilePhoto(String profilePhoto) {
		this.profilePhoto = profilePhoto;
	}

	public Long getQrcodeOriginPartnerId() {
		return qrcodeOriginPartnerId;
	}

	public void setQrcodeOriginPartnerId(Long qrcodeOriginPartnerId) {
		this.qrcodeOriginPartnerId = qrcodeOriginPartnerId;
	}

	public String getPersonalCardQrcode() {
		return personalCardQrcode;
	}

	public void setPersonalCardQrcode(String personalCardQrcode) {
		this.personalCardQrcode = personalCardQrcode;
	}

	public String getDevCompanyUuid() {
		return devCompanyUuid;
	}

	public void setDevCompanyUuid(String devCompanyUuid) {
		this.devCompanyUuid = devCompanyUuid;
	}

	public String getDepartmentName() {
		return departmentName;
	}

	public void setDepartmentName(String departmentName) {
		this.departmentName = departmentName;
	}

	public Date getCheckTime() {
		return checkTime;
	}

	public void setCheckTime(Date checkTime) {
		this.checkTime = checkTime;
	}

	public String getCheckUserName() {
		return checkUserName;
	}

	public void setCheckUserName(String checkUserName) {
		this.checkUserName = checkUserName;
	}

	public String getCheckRemark() {
		return checkRemark;
	}

	public void setCheckRemark(String checkRemark) {
		this.checkRemark = checkRemark;
	}

	public String getCheckStatus() {
		return checkStatus;
	}

	public void setCheckStatus(String checkStatus) {
		this.checkStatus = checkStatus;
	}

	public Long getCheckRecordId() {
		return checkRecordId;
	}

	public void setCheckRecordId(Long checkRecordId) {
		this.checkRecordId = checkRecordId;
	}
	
}
